import { _decorator, Button, EditBox, Label, Node, ProgressBar, Toggle } from 'cc';
import { addctrl, ctrl, proxy } from '../../core/module/proxy/ProxyDecorator';
import { ProxyBase } from '../../core/module/proxy/ProxyBase';
import { uiparams } from '../../core/module/ui/UIDecorator';
import { LayerEnum } from '../share/Enum';
import { UICoverAction } from '../../core/module/ui/BaseTypes';

const { ccclass, property } = _decorator;
@uiparams(LayerEnum.base, { cover: UICoverAction.SHOW })
@proxy('login', 'prefab/login')
@ccclass('LoginProxy')
export class LoginProxy extends ProxyBase {
    @addctrl('c1', 2)
    @property(Node)
    btnGroup: Node

    @addctrl('c1', 1)
    @property(Node)
    updateGroup: Node

    @addctrl('c1', 2)
    @property(Node)
    agreement: Node


    @property(EditBox)
    inputIp: EditBox = null

    @property(Button)
    btnSetIp: Button = null

    @property(Button)
    btn3rd: Button = null

    @property(Button)
    btnAccount: Button = null

    @property(Button)
    btnYouke: Button = null

    @property(Toggle)
    tgAgree: Toggle = null

    @property(ProgressBar)
    pbBar: ProgressBar = null

    @property(Label)
    pbDes: Label = null

    @property(Button)
    btnSample: Button = null

    // /**
    //  * 0 : 不显示
    //  * 1 : 显示进度条
    //  * 2 : 显示登陆
    //  */
    @ctrl
    c1 = 0

}